home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / rangeobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  473 b   |  16 lines

  1. /* Range object interface */
  2.  
  3. /*
  4. A range object represents an integer range.  This is an immutable object;
  5. a range cannot change its value after creation.
  6.  
  7. Range objects behave like the corresponding tuple objects except that
  8. they are represented by a start, stop, and step datamembers.
  9. */
  10.  
  11. extern DL_IMPORT(PyTypeObject) PyRange_Type;
  12.  
  13. #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
  14.  
  15. extern DL_IMPORT(PyObject *) PyRange_New Py_PROTO((long, long, long, int));
  16.